<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
function ouputcsv()
{
	$("#if_csv").val(1);
	$("#search").submit();
}


</script>
<title>历史订单列表</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">历史订单列表</h1>
  <span class="pagedesc"></span>

   <div class="menulist">
      <ul class="profile_summary">
        <li class="current"> <a href="/order/amazonfba?goods_id={{$goods_id}}" target="_blank"><span>FBA历史订单</span></a></li>

      </ul>
  </div>
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
   <!--搜索栏-->
          <div>
          
   	
         <div style="clear: both"></div>
         <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
   </div>
      
    <form class="stdform stdform2" method="get" id="search" action="/order/ajaxbutton">
     <input type='hidden' name='op' id='op' value="showhistoryOrder">
     <input type='hidden' name='goods_id' id='goods_id' value="{{$goods_id}}">

      <div class="tableoptions"> 
        
      
         
               
       订单时间
    
       <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
       订单号: <input type="text" name="other" id="other" class="width200" value="{{$other}}" placeholder="订单编号" />
     
       <select name="status" id="status">
              <option value="">-状态-</option>
             <option value="1" {{if $status=='1'}} selected{{/if}}>新订单</option>
             <option value="2" {{if $status=='2'}} selected{{/if}}>已支付</option>
             <option value="3" {{if $status=='3'}} selected{{/if}}>配货中</option>
             <option value="4" {{if $status=='4'}} selected{{/if}}>已发货</option>
             <option value="5" {{if $status=='5'}} selected{{/if}}>已完成</option>
             <option value="6" {{if $status=='6'}} selected{{/if}}>作废</option>
             <option value="7" {{if $status=='7'}} selected{{/if}}>待审查</option>
		  </select>                    
&nbsp;
        <button class="btn btn-primary" id="searchbtn">Search</button>
        &nbsp;
     
      </div>
      
    
    </form>
    <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
   <tr class="lbbt">
     <td bgcolor="#FEFFF1" >订单编号</td>
    <td  bgcolor="#FEFFF1" >店铺</td>
    <td  bgcolor="#FEFFF1" >状态</td>
    <td  bgcolor="#FEFFF1">买家帐号</td>
    <td  bgcolor="#FEFFF1" >订单金额</td>
    <td  bgcolor="#FEFFF1">货运方式</td>
    <td bgcolor="#FEFFF1">货运单号</td>
 <td  bgcolor="#FEFFF1">订单时间</td>
 <td  bgcolor="#FEFFF1" >发货时间</td>
  </tr>
</thead>
<tbody >

{{foreach from=$orderlist item=li key=key}}
<tr>
  <td valign="middle"  style="position:relative;"><a href="/orderlist/editorder?order_id={{$li.order_id}}" target="_blank"><font color="#000099">{{$li.order_sn}}</font></a></td>
  <td>{{$li.shopname}}</td>
  <td valign="middle" >{{if $li.order_status==1}}新订单{{/if}}
  {{if $li.order_status==2}}已支付{{/if}}
  {{if $li.order_status==3}}配货中{{/if}}
  {{if $li.order_status==4}}已发货{{/if}}
  {{if $li.order_status==5}}已完成{{/if}}
  {{if $li.order_status==6}}已作废{{/if}}</td>
  <td valign="middle" >{{$li.customerid}}</td>
  <td valign="middle" >{{$li.goods_amount}}</td>
  <td valign="middle" >{{$li.shipping_name}}</td>
    <td valign="middle" >{{$li.shipping_number}}</td>
  <td valign="middle" >{{$li.ordertime}}</td>
  <td valign="middle" >{{$li.expresstime}}</td>
</tr>
{{/foreach}}
</tbody>

</table>
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
</div>
</div>

  
  
</body>
</html>